setProfile

fun setProfile(name: String, avatarFile: String?, about: String?, emoji: String?, mobileCoinAddress: String?, visibleBadgeIds: List<String>?)

Sets the profile of the current account. Note that all the parameters here will be used as the new profile fields; leaving one of the fields unset or null means it will be treated as clearing it.

Parameters

name

A new profile name. Set to empty string for no profile name Example: "signald user"

avatarFile

Path to new profile avatar file. If unset or null, this will unset the profile avatar. Example: "/tmp/image.jpg

about

An optional about string. If unset, null or an empty string will unset profile's about field.

emoji

An optional single emoji character. If unset, null or an empty string will unset profile emoji.

mobileCoinAddress

An optional base64-encoded MobileCoin address to set in the profile. Payment address must be a base64-encoded MobileCoin address. Note that this is not the traditional MobileCoin address encoding, which is custom. Clients are responsible for converting between MobileCoin's custom base58 on the user-facing side and base64 encoding on the signald side.

visibleBadgeIds

IDs of badges. Badges and their IDs are dynamically provided by the server.

Throws